.class public final Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;
.super Lcom/qq/taf/jce/JceStruct;


# static fields
.field static cache_appInfo:Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;


# instance fields
.field public appInfo:Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;

.field public isUninstall:B

.field public timestamp:J


# direct methods
.method public constructor <init>()V
    .locals 2

    invoke-direct {p0}, Lcom/qq/taf/jce/JceStruct;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->appInfo:Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;

    const/4 v0, 0x0

    iput-byte v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->isUninstall:B

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->timestamp:J

    return-void
.end method

.method public constructor <init>(Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;BJ)V
    .locals 3

    invoke-direct {p0}, Lcom/qq/taf/jce/JceStruct;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->appInfo:Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;

    const/4 v0, 0x0

    iput-byte v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->isUninstall:B

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->timestamp:J

    iput-object p1, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->appInfo:Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;

    iput-byte p2, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->isUninstall:B

    iput-wide p3, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->timestamp:J

    return-void
.end method


# virtual methods
.method public readFrom(Lcom/qq/taf/jce/JceInputStream;)V
    .locals 4

    const/4 v3, 0x0

    const/4 v1, 0x1

    sget-object v0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->cache_appInfo:Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;

    if-nez v0, :cond_0

    new-instance v0, Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;

    invoke-direct {v0}, Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;-><init>()V

    sput-object v0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->cache_appInfo:Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;

    :cond_0
    sget-object v0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->cache_appInfo:Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;

    invoke-virtual {p1, v0, v3, v1}, Lcom/qq/taf/jce/JceInputStream;->read(Lcom/qq/taf/jce/JceStruct;IZ)Lcom/qq/taf/jce/JceStruct;

    move-result-object v0

    check-cast v0, Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;

    iput-object v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->appInfo:Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;

    iget-byte v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->isUninstall:B

    invoke-virtual {p1, v0, v1, v1}, Lcom/qq/taf/jce/JceInputStream;->read(BIZ)B

    move-result v0

    iput-byte v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->isUninstall:B

    iget-wide v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->timestamp:J

    const/4 v2, 0x2

    invoke-virtual {p1, v0, v1, v2, v3}, Lcom/qq/taf/jce/JceInputStream;->read(JIZ)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->timestamp:J

    return-void
.end method

.method public writeTo(Lcom/qq/taf/jce/JceOutputStream;)V
    .locals 3

    iget-object v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->appInfo:Lcom/tencent/android/tpush/service/channel/protocol/AppInfo;

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Lcom/qq/taf/jce/JceOutputStream;->write(Lcom/qq/taf/jce/JceStruct;I)V

    iget-byte v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->isUninstall:B

    const/4 v1, 0x1

    invoke-virtual {p1, v0, v1}, Lcom/qq/taf/jce/JceOutputStream;->write(BI)V

    iget-wide v0, p0, Lcom/tencent/android/tpush/service/channel/protocol/UnregInfo;->timestamp:J

    const/4 v2, 0x2

    invoke-virtual {p1, v0, v1, v2}, Lcom/qq/taf/jce/JceOutputStream;->write(JI)V

    return-void
.end method
